﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Text.Model;
using Text.Model.Shop;
using Text.Model.ShopModel;

namespace Text.Dal
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class TextDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public TextDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }

        /// <summary>
        /// 用户表
        /// </summary>
      public DbSet<AdminModel> adminModels { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public DbSet<Address> addresses { get; set; }
        /// <summary>
        /// 门店
        /// </summary>
        public DbSet<ShopModel> shopModels { get; set; }
    }
}
